package com.woniu.mapper;

import com.woniu.entity.Equipment;
import com.woniu.entity.Ward;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
* @author FQY
* @description 针对表【equipment(医疗设备)】的数据库操作Mapper
* @createDate 2025-10-31 14:53:40
* @Entity com.woniu.entity.Equipment
*/
public interface EquipmentMapper {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(Equipment record);

    Integer insertSelective(Equipment record);

    Equipment selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(Equipment record);

    Integer updateByPrimaryKey(Equipment record);
    List<Equipment> findAll();
    Integer updateEquipment(Integer id);
    List<Equipment> selectByCondition(@Param("equipName") String equipName,
                                      @Param("roomName")  String roomName,
                                      @Param("status")    Integer status);
    List<Equipment> selectByNextMaintenanceDateEquipment(@Param("today") LocalDate today);

}
